package com.example.paopao.consumer.memer.dao.persist.repository.impl;

import com.example.paopao.consumer.memer.dao.persist.mapper.JobHiringMapper;
import com.example.paopao.consumer.memer.dao.persist.repository.IJobHiringRepository;
import com.example.paopao.consumer.memer.pojo.entity.UserDeductIntegral;
import com.example.paopao.consumer.memer.pojo.vo.JobHiringPhoneVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class JobHiringRepositoryImpl implements IJobHiringRepository {

    @Autowired
    private JobHiringMapper jobHiringMapper;

    @Override
    public JobHiringPhoneVO getPhone(Long id) {
        return jobHiringMapper.getPhone(id);
    }

    @Override
    public Long deductIntegral(Long userId) {
        return jobHiringMapper.getIntegral(userId);
    }

    @Override
    public int updateIntegral(UserDeductIntegral deductIntegral) {

        return jobHiringMapper.updateIntegral(deductIntegral);
    }
}


